package com.powernode.service;

import com.powernode.dao.TowerAdminMapper;
import com.powernode.pojo.TowerAdmin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TowerAdminService {
    @Resource
    TowerAdminMapper towerAdminMapper;

    public List<TowerAdmin> select(){
        return towerAdminMapper.select();
    }

    public TowerAdmin selectByTowerSite(String towerSite){ return towerAdminMapper.selectByTowerSite(towerSite); }

    public void insert(TowerAdmin entity){
        towerAdminMapper.insert(entity);
    }

    public void update(TowerAdmin entity){
        towerAdminMapper.update(entity);
    }

    public void delete(Integer[] ids){
        towerAdminMapper.delete(ids);
    }

    public TowerAdmin get(Integer id) {return towerAdminMapper.getById(id); }
}
